(function(window, undefined){
	var $win	= $(window),
		$doc	= $(document),
		Fn		= function(){},
		init	= {};
		
/**************************** BEGIN ****************************/
	
	/**
	 * 初始化
	 * @method init.initial
	 * @since 1.0
	 * @return {none}
	 */
	init.initial = function(){
		$doc.on('click' , '.J_xtabs a' , function(){
			var $this = $(this),
				index = $this.index();
			$this.addClass('on').siblings().removeClass('on');
			$('.J_xchoose .m_wxcon_tb').eq(index).addClass('on').siblings().removeClass('on');
		}).on('mouseenter' , '.J_xabout li' , function(){
			var $this = $(this);
			$this.addClass('current').siblings().removeClass('current');
		}).on('mouseleave' , '.J_xabout li' , function(){
			var $this = $(this);
			$this.removeClass('current');
		}).on('click' , '.J_xnews' , function(){
			var $this = $(this);
			$('.m_xpopups , .m_xconsum').addClass('show');
			$('.m_xsubunit').removeClass('show');
		}).on('click' , '.ru' , function(){
			var $this = $(this);
			$('.s_popups , .m_xconsum').addClass('show');
		}).on('click' , '.s_ok' , function(){
			$('.s_popup, .m_xconsum').addClass('show');
			$('.s_popups').removeClass('show');
		}).on('click' , '.s_oks' , function(){
			$('.s_popup2, .m_xconsum').addClass('show');
			$('.s_popup').removeClass('show');
		}).on('click' , '.J_xclose' , function(){
			var $this = $(this);
			$('.m_xpopups').removeClass('show');
		}).on('click' , '.J_close' , function(){
			var $this = $(this);
			$('.s_popup2').removeClass('show');
		}).on('click' , '.J_sclose' , function(){
			var $this = $(this);
			$('.s_popups').removeClass('show');
		}).on('click' , '.J_xreset' , function(){
			var $this = $(this);
			$this.parents('.m_xconsum').removeClass('show');
			$('.m_xsubunit').addClass('show');
		}).on('click' , '.J_xmade' , function(){  // 打开客户维度属性定制弹窗
			var $this = $(this);
			$('.m_xdimens').addClass('show');
		}).on('click' , '.J_xcancel' , function(){ // 关闭客户维度属性定制弹窗
			var $this = $(this);
			$this.parents('.m_xdimens').removeClass('show');
		}).on('click' , '.J_xdialogue' , function(){  // 沟通记录弹窗
			$('.J_xcontact').addClass('show');
			$('.J_xactivity').removeClass('show')
		}).on('click' , '.J_xseed' , function(){  // 推送活动弹窗
			$('.J_xactivity').addClass('show');
			$('.J_xcontact').removeClass('show')
		}).on('click' , '.J_xsutup' , function(){
			$('.J_xcontact , .J_xactivity').removeClass('show')
		}).on('click' , '.J_xkelvin .cash' , function(){
			var $this = $(this);
			$this.addClass('on').siblings().removeClass('on');
		}).on('click' , '.J_xselect a' , function(){
			var $this = $(this);
			$this.addClass('on').siblings().removeClass('on');
		});
	}

/**************************** END ****************************/

	$.each(init, function(){
		typeof this === 'function' && this();
	});
})(window);